cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

#
# Make a version file containing the current version from git.
#
set (VERSION_MAJOR 3)
set (VERSION_MINOR 1)
set (VERSION_PATCH 1)
include(GetOcsswVersion)

find_package(LibBin++ REQUIRED)
include_directories(${LibBin++_INCLUDE_DIRS})

add_executable(l3bindump
  l3bindump_input.c
  compareObj.cpp
  main_l3bindump.cpp
)

add_executable(l3bindump64
  l3bindump_input64.c
  compareObj.cpp
  main_l3bindump64.cpp
)

target_link_libraries(l3bindump
  ${LibBin++_LIBRARIES}
)

target_link_libraries(l3bindump64
  ${LibBin64++_LIBRARIES}
)

install (TARGETS l3bindump l3bindump64 DESTINATION bin)

